/****************************************************
          File Name:shm_unlink.c
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Thu 25 Sep 2014 07:24:03 PM CST
*****************************************************/

#include"posix_ipc.h"

int main(int argc,char *argv[])
{
    Usage(argc,"/shm",argv[0],argv[1]);

    if(shm_unlink(argv[1])==-1)
        err("shm_unlink");
    printf("shared memery removed\n");
    exit(EXIT_SUCCESS);
}
